package com.itheima.mapper;

import com.itheima.pojo.Emp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;
import java.util.List;

/**
 * CTassName: EepMapperJob
 * Package: com.itheima.mapper
 * Description:
 *
 * @Author xw
 * @Create 2023/11/4 22:04
 * @Version 1.0
 */
@Mapper
public interface EepMapperJob {

    //获取当前页的结果列表
    List<Emp> page(String name, Short gender, LocalDate begin, LocalDate end);

    // 添加
    void add(Emp emp);

    // 删除
    void deleteEmp(String[] idArray);


    // id查询
    Emp findById(Integer id);

    // 修改
    void update(Emp emp);

    // 删除员工
    void delete(Integer id);
}
